package com.achievement.mapper;

import com.achievement.domain.entity.HonorAuthorEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

public interface HonorAuthorMapper extends BaseMapper<HonorAuthorEntity> {

    /**
     * 查询 根据主键 id 查询
     * @author hanshicheng
     * @date 2025/02/12
     **/
    HonorAuthorEntity load(int id);

    /**
     * 查询 根据成果ID查询完成人信息
     * @author hanshicheng
     * @date 2025/02/12
     **/
    List<HonorAuthorEntity> honorAuthorListByHonorId(String honorId);

    /**
     * 根据honorId删除所有完成人信息
     */
    int deleteAuthorListByHonorId(String honorId);

}
